import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.swing.JFrame;

public class TestFrame extends JFrame{

	int x;
	int y;
	BufferedImage imagetest;

	TestFrame(){
		super();
		//		try{
		//			image load here
		//		}
		//		catch(IOException i){
		//			System.out.println("gtfo");
		//		}
		this.setSize(1024, 720);
		this.getContentPane().setBackground(Color.GRAY);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
	}

	public static void main(String[] args){

		TestFrame panel = new TestFrame();
		panel.setVisible(true);
	}

	public void paint(Graphics g){
		Graphics2D g2d = (Graphics2D) g;
		super.paint(g2d);
		g2d.setColor(Color.cyan);
		g2d.fillRect(x, y, 100, 100);
		x++;
		y++;
	}
}
